package com.mk.scanner;

import java.util.ArrayList;
import java.util.List;

import android.app.Application;

public class StateManager extends Application {

	private List<String> items;

	public StateManager() {
		items = new ArrayList<String>();
	}

	public void addItem(PurchaseItem item) {
		items.add(item.getName());
	}

	public void removeItem(PurchaseItem item) {
		items.remove(item.getName());
	}

	public List<String> getItems() {
		return items;
	}
	
	public void clearItems() {
		items.clear();
	}

}
